define([
  'require'
], function(require) {
  'use strict';

  var _this = {};

  function init (app, container) {
    var self = _this;
    self.scoreCount = 0;
    self.scoreTextStyle = new PIXI.TextStyle({
      fontFamily: 'Arial',
      fontSize: 36,
      fontStyle: 'italic',
      fontWeight: 'bold',
      fill: ['#ffffff', '#00ff99'], // gradient
      stroke: '#4a1850',
      strokeThickness: 5,
      dropShadow: true,
      dropShadowColor: '#000000',
      dropShadowBlur: 4,
      dropShadowAngle: Math.PI / 6,
      dropShadowDistance: 6,
      wordWrap: true,
      wordWrapWidth: 440
    });
    self.score = new PIXI.Text(self.scoreCount, self.scoreTextStyle);
    self.score.position.x = 0;
    self.score.position.y = 0;
    container.addChild(self.score);
  }

  function score () {
    _this.scoreCount++;
    _this.score.text = _this.scoreCount;
  }

  return {
    init: init,
    score: score,
  }
  
});